﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>蓝领</title>
<!---------------------------------- 页面基本设置禁止随意更改 ------------------------------------------>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="index" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="renderer" content="webkit" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!---------------------------------- 页面基本设置禁止随意更改 -------------------------------------------->
<!---------------------------------- 基础CSS类库可随意更改 ---------------------------------------------->
<link type="text/css" rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/css/reset.css?v={yun:}$config.cachecode{/yun}" />
<link type="text/css" rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/css/pin.css?v={yun:}$config.cachecode{/yun}" />
<!---------------------------------- 基础CSS类库可随意更改结束 -------------------------------------------->
<!---------------------------------- 基础js类库可随意更改 ---------------------------------------->
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/js/jquery.1.11.3.min.js?v={yun:}$config.cachecode{/yun}"></script>
<!---------------------------------- 基础js类库可随意更改 ---------------------------------------->
    <script>
        weburl = "{yun:}$config.sy_weburl{/yun}";
    </script>
<script type="text/javascript" >
$(function(){
	/*弹框点开*/
	$(".js-dialog_click").click(function(){
		var id=$(this).attr("dialog-name");
		$("#"+id).find(".dialog-shadow").css("z-index", $(".dialog-show").length*2+1000);
		$("#"+id).find(".dialog-box").css("z-index", $(".dialog-show").length*2+1+1000);
		$("#"+id).show();
		})
	/*弹框关闭*/
	$(".js-dialog_close").click(function(){
	     $(this).parents(".dialog").hide();
		});
    /*弹框关闭*/
    $(".pin_alonebtn").click(function(){
        $(this).parents(".dialog").hide();
    });
	})

</script>


</head>
<body>
   <div class="pin_box pin_tbox pin_tbg1">
        <!-----------------头部标题开始----------------->
        <div class="pin_infotitle">
        	<a href="index.php?c=info&user_id={yun:}$user.user_id{/yun}&type={yun:}$type{/yun}" class="titleback"></a>
            <span class="titlename">{yun:}$user.username{/yun}</span>
        </div>
        <!-----------------头部标题结束----------------->
   	    <div class="pin_bcon">
        	<div class="pin_scroll">
                 <div class="pin_clientinfo">
                 	 <div class="client_icon"><img src="{yun:}$user.user_avatar{/yun}" /></div>
                 	 <div class="client_info">
                     	 <div class="client_title">跟踪记录</div>
                         <div class="pinclient_record">
                             {yun:}foreach from=$track item=v{/yun}
                         	 <div class="recordlist recordlist_new">
                             	 <div class="icon"></div>
                             	 <div class="conbox">
                                    <div class="header"> 
                                        <!--<span class="time">2019.10.20</span>-->
                                        <span class="name">{yun:}$v.track_time{/yun}</span>
                                    </div>
                                    <div class="info">{yun:}$v.track_content{/yun}</div>
                                   
                                 </div>
                             </div>
                             {yun:}/foreach{/yun}
                         	 <!--<div class="recordlist">-->
                             	 <!--<div class="icon"></div>-->
                             	 <!--<div class="conbox">-->
                                    <!--<div class="header"> -->
                                        <!--<span class="time">2018.10.20</span>-->
                                        <!--<span class="name">麦兜兜小姐</span>-->
                                    <!--</div>-->
                                    <!--<div class="info">麦兜兜小姐麦兜兜小姐，麦兜兜小姐麦兜兜小姐。</div>-->
                                   <!---->
                                 <!--</div>-->
                             <!--</div>-->
                         	 <!--<div class="recordlist">-->
                             	 <!--<div class="icon"></div>-->
                             	 <!--<div class="conbox">-->
                                    <!--<div class="header"> -->
                                        <!--<span class="time">2018.9.20</span>-->
                                        <!--<span class="name">麦兜兜小姐</span>-->
                                    <!--</div>-->
                                    <!--<div class="info">麦兜兜小姐麦兜兜小姐，麦兜兜小姐麦兜兜小姐。</div>-->
                                   <!---->
                                 <!--</div>-->
                             <!--</div>-->
                         </div>
                     </div>
                     <input type="button" class="pin_btn pin_alonebtn js-dialog_click" value="+新增一条跟踪信息" dialog-name="add_record"> 
                 </div>               
                
            </div>
        </div>
        
        <!--新增跟踪信息弹框开始-->
        <div class="dialog js-dialog" id="add_record">
        	<div class="dialog-shadow"></div>
            <div class="dialog-box">
            	 <div class="dialog_style1">
                 	<div class="header">
                       <span class="close js-dialog_close"></span>
                    	<span class="name">跟进内容</span>
                    	
                    </div>
                     <input type="hidden" id="user_id" name="user_id" value="{yun:}$user.user_id{/yun}">
                     <input type="hidden" id="type" name="type" value="{yun:}$type{/yun}">
                     <textarea id="content" name="content" class="pin_textarea" placeholder="请输入反馈意见..."></textarea>
                    <ul class="two_btnbox" style="margin-top:16px;">
                    	<li>
                        	<input type="button" class="pin_btn pin_gray_btn pin_alonebtn" value="取消">
                        </li>
                    	<li><input type="button" class="pin_btn pin_alonebtn" onClick="tracksave('{yun:}url m=jingjiren c=track_save{/yun}');" value="添加"></li>
                    </ul>
                 </div>
            </div>
        </div>
        
        <!--新增跟踪信息弹框结束-->
        
        
        
   </div>
</body>
</html>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /><script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script><script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>

<script type="text/javascript">
    function tracksave(url){
        var user_id=$("#user_id").val();
        var content=$("#content").val();
        var type=$("#type").val();
        if(user_id==""){
            layer.msg('用户ID不能为空！', 2, 8);return false;
        }
        if(content==''){
            layer.msg('跟踪记录不能为空！', 2, 8);return false;
        }

        $.post(url,{
            user_id:user_id,
            content:content,
            type:type,

        },function(data){
            var data=eval('('+data+')');

            if(data.url){
                window.location.href=data.url;
            }else{

                //alert("11111");
                layer.msg(data.msg, 2, 8);
            }
        })
    }
</script>
